<?php
include("../../config.php");
$_POST['url']=$_POST['url']??"";
$_POST['gather_type']=$_POST['gather_type']??"";

?><!DOCTYPE html>
<meta name=referrer content=no-referrer>
<meta name="renderer" content="webkit">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Language" content="utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>龙抓手测试与规则设置..</title>
    <link rel="stylesheet" type="text/css" href="/collect/reset/css/reset.css?v=1.2"/>
    <script type="text/javascript" src="../../js/jquery-3.2.1.min.js?v=1.2"></script>
    <!--script type="text/javascript" src="/js/ZeroClipboard.min.js?v=1.2"></script-->
    <link type="text/css" rel="stylesheet" href="../waterfall/css/waterfall.css?v=1.2"/>
    <link type="text/css" rel="stylesheet" href="css/font-awesome-4.7.0/css/font-awesome.min.css?v=1.2"/>
    <script type="text/javascript" language="javascript" src="../waterfall/js/waterfall.js?v=1.2"></script>
    <script type="text/javascript" src="../../PlayerLite/images/swfobject.js?v=1.2"></script>
    <script type="text/javascript" language="javascript" src="../js/layer/layer.js?v=1.2"></script>
    <script language="javascript" src="../../editor/editor_function.js?v=1.2"></script>
    <script type="text/javascript" src="./PlayerLite/ckplayer/ckplayer.js?v=1.2" charset="UTF-8"></script>"
    <script>
        function loadjs() {
            if(document.querySelector("#resetjsID")) {
                document.querySelector("#resetjsID").remove();
            }
            var script = document.createElement('script');
            script.id = "resetjsID";
            script.src = "../../collect/reset/reset.js?v=1.23";
            document.head.appendChild(script);
        }
        $(document).ready(function(){
            loadjs();
        })



    </script>
</head>
<body style="margin-left:5px">
<div id="maximgdiv"><img id="maximg" src="" _onmousewheel2="return bigimg(this)" style="cursor:pointer" ></div>
<div style="margin:0x 5px">
    <table id="toolbar" border="0" width="100%" height=22
           style="position: fixed;top:0;background: white none repeat scroll 0% 0%;width:100%;text-align:left;z-index: 98;font-size: 12px;">
        <tr>
            <td>抓取</td>
            <td id="toptd">
                <div id="fix">
                    <div id="a">
                        <span class="right"><a href="#yan" id="yanshref" >源文件</a></span>
                        <span class="right"><a href="#puhuo">捕获</a></span>
                        <span class="right"><a href="#delete">delete</a></span>
                        <span class="right"><a href="#pre_exe">pre_exe</a></span>
                        <span class="right"><a href="#exe">exe</a></span>
                        <span class="right"><a target=_blank href="https://yangjc.com/markdowntohtml.php?XDEBUG_SESSION_START=5432" target="_blank">markdown</a></span>
                        <span class="right"><a href="#cookies" id="cookieshref">cookie</a></span>
                        <span class="right"><a href="#视频">视频</a></span>
                        <span class="right"><a href="#dateline">时间</a></span>
                        <span class="right"><a href="#jianjie">摘要</a></span>
                        <span class="right"><a href="#tip_jsonHost" id="zuanyue">专业</a></span>
                        <span class="right"><a target=_blank href="javascript:void(0)" id="zuanyuesj">专业数据</a></span>
                    </div>
                    <iframe id="ifr" name="ifr" width=0 height=0 style="width:0px;height:0px;display:none"></iframe>
                    <form method="POST" action="" name=o style="margin:0;padding:0">
                        <input type="hidden" id="thishost" name="thishost" value="<?php echo __WWW__;?>">
                        <input type="hidden" id="tempcookie" name="tempcookie" value="">
                        <input type="text" id="s_url" name="url" style="width:30%" value="<? echo ($_POST['url'] == "") ? "http://" : $_POST['url']; ?>" onFocus="this.select();" onblur=loadset() oninput=onsurlchange() onpropertychange=onsurlchange()>
                        <select id="gather_type" name="gather_type">
                            <option
                                    value=1<?= ($_POST['gather_type'] == 1 || $_POST['gather_type'] == '') ? " selected" : "" ?>>
                                抓文章
                            </option>
                            <option
                                    value=6<?= ($_POST['gather_type'] == 6) ? " selected" : "" ?>>
                                批量抓取(填目录地址)
                            </option>
                        </select>
                        <input type="button" value="保存" name="B1" style="background:blue;color:#fff;border:0px" id="B1"
                               onclick=submits()>
                        <input type="button" value="测试" name="B2" id="B2" onclick=testt(0)>
                        <input type="button" value="强刷" name="B2" id="B2bug" onclick=testt(1) style="background: red none repeat scroll 0% 0%; color: rgb(255, 255, 255);">
                        <input type="button" value="停止" name="B7" id="B7" onclick=dostop()>
                        <select name=htmlpageuse" id="htmlpageuse">
                            <option value="0">正常</option>
                            <option value="1" selected>写入</option>
                            <option value="2">缓存</option>
                        </select>
                        <input type="button" value="备份" name="kuaizhao" id="kuaizhao">
                        <select name=history" id="history">
                            <option value="0">快照</option>
                        </select>
                        <!--
                        <input type="text" size=5 name="skey" value=""><input type="button" value="搜索" name="B3"
                                              onclick="searchsite()">
                        -->
                        <div class="righttop">
                            <input type="checkbox" id="nozqnr" value="1" name="B8" checked>&nbsp;列表页不抓取内容
                            <input type="checkbox" name="zwnozqnr" value="1" id="zwnozqnr"><label for="zwnozqnr">正文页不抓取内容</label>
                            <input type="checkbox" id="ubb" value="0" name="ubb">&nbsp;非UBB
                            <input type="checkbox" id="temp" value="1" name="temp">&nbsp;temp
                            <label style='font-size: 11px;'><input type=checkbox id='guocheng' value=1 checked style='width:25px;'>过程</label>
                            <textarea id="parset" style="display: none"></textarea>
                            <label style='font-size: 11px;'><input type=checkbox id='jksjck' value=1 style='width:25px;'>数据</label>
                            <textarea id="parset" style="display: none"></textarea>
                        </div>
                    </form>
                </div>

            </td>
        </tr>
    </table>
    <div id="viewnr">
        <div id="viewnr_l">
            <div id="pz">
                <div id="searchdiv"></div>
                <div id="gzdw"></div>
            </div>
            <div id="viewresult">
                <dt>
                <dd>
                    <dl class="title">引标题</dl>
                    <dl><input type="text" id="subject2" name="subject2" value=""></dl>
                </dd>
                <dd>
                    <dl class="title">标题</dl>
                    <dl><input type="text" id="subject" name="subject" size="121" value=""></dl>
                </dd>
                <dd>
                    <dl class="title">附标题</dl>
                    <dl><input type="text" id="subject3" name="subject3" value=""></dl>
                </dd>
                <dd>
                    <dl class="title" id="视频">视频</dl>
                    <dl><input type="text" id="swf" name="swf" value=""></dl>
                </dd>
                <dd>
                    <dl class="title">视频缩略图</dl>
                    <dl><input type="text" id="aviimage" name="aviimage" value=""></dl>
                </dd>
                <dd>
                    <dl class="title">封面图</dl>
                    <dl><input type="text" id="faceimg" name="faceimg" value=""></dl>
                </dd>
                <dd>
                    <dl class="title">内容</dl>
                    <dl><textarea name="message" id="uchome-ttHtmlEditor" style="height:300px;"></textarea></dl>
                </dd>
                <dd>
                    <dl class="title">时间</dl>
                    <dl><input type="text" id="dateline" name="dateline" value=""></dl>
                </dd>
                <dd>
                    <dl class="title">点击</dl>
                    <dl><input type="text" id="views" name="views" value=""></dl>
                </dd>
                <dd>
                    <dl class="title">回复</dl>
                    <dl><input type="text" id="replies" name="replies" value=""></dl>
                </dd>
                <dd>
                    <dl class="title">标签</dl>
                    <dl><input type="text" id="keywordv" name="keywordv" value=""></dl>
                </dd>
                <dd>
                    <dl class="title">栏目</dl>
                    <dl><input type="text" id="plate" name="plate" value=""></dl>
                </dd>
                <dd>
                    <dl class="title">来源</dl>
                    <dl><input type="text" id="laiyuan" name="laiyuan" value=""></dl>
                </dd>
                <dd>
                    <dl class="title">作者</dl>
                    <dl><input type="text" id="author" name="author" value=""></dl>
                </dd>
                <dd>
                    <dl class="title">记者</dl>
                    <dl><input type="text" id="jizhe" name="jizhe" value=""></dl>
                </dd>

                <dd>
                    <dl class="title">资源</dl>
                    <dl><textarea type="text" id="resource" name="resource" value=""
                                  style="width:100%;height:80px"></textarea></dl>
                </dd>
                <dd>
                    <dl class="title">文章简介</dl>
                    <dl><textarea type="text" id="jianjie" name="jianjie"></textarea></dl>
                </dd>
                <dd id="sourceWin">
                    <dl class="title">源文件
                        <a href="javascript:void(0)"  class="right" id="cache_before_code">前缓存</a>
                        <a href="javascript:void(0)"  class="right"  id="cache_after_code">后缓存</a>
                        <a href="javascript:void(0)"  class="right"  id="jsdata">jsdata</a>
                        <a href="javascript:void(0)"  class="right"  id="paibanhtml">排版HTML</a>
                        <a href="javascript:void(0)"  class="right"  id="maxwin">最大化窗口</a>
                        <a href="javascript:void(0)"  class="right"  id="savecache">保存到缓存</a>
                    </dl>
                    <dl><textarea name="yan" id="yan" style="width:98%;height:948px;border:1px solid #000;font-size: 12px;"></textarea></dl>
                </dd>
                <dd>
                    <dl class="title"></dl>
                    <!--dl><p align="center"><input type="submit" value="提交" name="B1"></dl-->
                </dd>
                </dt>
            </div>
        </div>
        <div id="viewnr_r" ondblclick="qk()">
            <div id="uchome-ifrHtmlEditor" scrolling="yes" border="0">
            </div>
            <ul id="stage">
                <li></li>
                <li></li>
                <li></li>
            </ul>
        </div>
    </div>
</div>

</body>

</html>